package com.itheima.lambda;

public class LambdaDemo2 {
    public static void main(String[] args) {

        Swimming(()-> System.out.println("swimming"));

    }

    public static void Swimming(Swim s) {
        s.swim();
    }

}
interface Swim{
    void swim();
}
